(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    ["pages/main/statistics/statisticsList"], {
        1211: function (t, e, i) {
            "use strict";
            (function (t, e) {
                var a = i("4ea4");
                i("c150"), i("5c17"), i("a9ff");
                a(i("66fd"));
                var o = a(i("740c"));
                t.__webpack_require_UNI_MP_PLUGIN__ = i, e(o.default)
            }).call(this, i("bc2e")["default"], i("543d")["createPage"])
        },
        "282a": function (t, e, i) {},
        3366: function (t, e, i) {
            "use strict";
            var a = i("282a"),
                o = i.n(a);
            o.a
        },
        "3cf6": function (t, e, i) {
            "use strict";
            i.d(e, "b", (function () {
                return o
            })), i.d(e, "c", (function () {
                return s
            })), i.d(e, "a", (function () {
                return a
            }));
            var a = {
                    uniSwipeAction: function () {
                        return i.e("components/uni-swipe-action/uni-swipe-action").then(i.bind(null, "e7b4"))
                    },
                    uniSwipeActionItem: function () {
                        return Promise.all([i.e("common/vendor"), i.e("components/uni-swipe-action-item/uni-swipe-action-item")]).then(i.bind(null, "c498"))
                    }
                },
                o = function () {
                    var t = this.$createElement,
                        e = (this._self._c, parseFloat(this.tongjilist.dayCLWeight).toFixed(2)),
                        i = parseFloat(this.tongjilist.dayXSWeight).toFixed(2),
                        a = parseFloat(this.tongjilist.dayXSMoney).toFixed(2);
                        if (isNaN(e)) {  
                            e = 0;  
                          }

                        if (isNaN(i)) {  
                            i = 0;  
                          }

                        if (isNaN(a)) {  
                            a = 0;  
                          }
                    this.tongjilist.daySCD = this.tongjilist.daySCD == undefined ? 0 : this.tongjilist.daySCD
                    this.$mp.data = Object.assign({}, {
                        $root: {
                            g0: e,
                            g1: i,
                            g2: a
                        }
                    })
                },
                s = []
        },
        "66d9": function (t, e, i) {
            "use strict";
            i.r(e);
            var a = i("7dec"),
                o = i.n(a);
            for (var s in a)["default"].indexOf(s) < 0 && function (t) {
                i.d(e, t, (function () {
                    return a[t]
                }))
            }(s);
            e["default"] = o.a
        },
        "740c": function (t, e, i) {
            "use strict";
            i.r(e);
            var a = i("3cf6"),
                o = i("66d9");
            for (var s in o)["default"].indexOf(s) < 0 && function (t) {
                i.d(e, t, (function () {
                    return o[t]
                }))
            }(s);
            i("3366");
            var n = i("f0c5"),
                l = Object(n["a"])(o["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
            e["default"] = l.exports
        },
        "7dec": function (t, e, i) {
            "use strict";
            (function (t) {
                var a = i("4ea4");
                Object.defineProperty(e, "__esModule", {
                    value: !0
                }), e.default = void 0;
                var o = a(i("2eee")),
                    s = a(i("c973")),
                    n = {
                        data: function () {
                            return {
                                tongjigongneng: !0,
                                zltj: !0,
                                timer: null,
                                roleKey: getApp().globalData.userinfo.roles[0].roleKey,
                                url: getApp().globalData.apiurl,
                                token: "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE4NWFlMDkwLWQ0YzYtNDRmNi1iZjAyLWFiZjg2ZjA0MDIzZSJ9.THq92XxTBTkE-7JYoVmmNNhrHj4mbgGvQIwQg2TOYCDxfdD22uDx8OLV9vkT1pwNsoecIkttbhPCYTA4Iu0hFg",
                                source: 0,
                                loadingType: "more",
                                totalCount: 0,
                                totalPages: 0,
                                pageSize: 10,
                                pageIndex: 1,
                                tongjilist: [],
                                sctj: !0,
                                xstj: !0,
                                kftj: !0,
                                cktj: !0,
                                listData: [{
                                    itemUrl: "plantj",
                                    itemTitle: "生产统计",
                                    itemIcon: "/static/img/xiaoshoudanchaxun.jpg"
                                }, {
                                    itemUrl: "salesStatistics",
                                    itemTitle: "销售统计",
                                    itemIcon: "/static/img/xiaoshoudanchaxun.jpg"
                                }
                                // , {
                                //     itemUrl: "salesStatisticsMoney",
                                //     itemTitle: "销售额统计",
                                //     itemIcon: "icon-danjuluzhi"
                                // }
                                , {
                                    itemUrl: "storageRoom",
                                    itemTitle: "库房统计",
                                    itemIcon: "/static/img/rukudan.jpg"
                                }, {
                                    itemUrl: "issue",
                                    itemTitle: "出库统计",
                                    itemIcon: "/static/img/chukudan.jpg"
                                }]
                            }
                        },
                        methods: {
                            loadData: function () {
                                var e = this;
                                getApp().globalData.userinfo;
                                this.roleKey = "";
                                var i = getApp().globalData.userinfo.roles[0].roleKey;
                                this.roleKey = i;
                                this.token = getApp().globalData.userinfo.loginIp, t.request({
                                    url: this.url + "statisticalchart/getDay",
                                    method: "GET",
                                    header: {
                                        Authorization: this.token
                                    },
                                    data: {},
                                    success: function (t) {
                                        e.tongjilist = t.data
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                }), t.switchTab({
                                    url: "/pages/main/statistics/statisticList"
                                })
                            },
                            refreshList: function (t) {
                                this.loadData("refresh")
                            },
                            deleteItem: function (t) {
                                var e = this;
                                return (0, s.default)(o.default.mark((function t() {
                                    return o.default.wrap((function (t) {
                                        while (1) switch (t.prev = t.next) {
                                            case 0:
                                                e;
                                            case 1:
                                            case "end":
                                                return t.stop()
                                        }
                                    }), t)
                                })))()
                            },
                            goDetails: function (e) {
                                "plantj" == e && t.navigateTo({
                                    url: "/pages/main/statistics/plantj"
                                }), "salesStatistics" == e && t.navigateTo({
                                    url: "/pages/main/statistics/salesStatistics"
                                }), "salesStatisticsMoney" == e && t.navigateTo({
                                    url: "/pages/main/statistics/salesStatisticsMoney"
                                }), "storageRoom" == e && t.navigateTo({
                                    url: "/pages/main/statistics/storageRoom"
                                }), "issue" == e && t.navigateTo({
                                    url: "/pages/main/statistics/issue"
                                }), "rawMaterial" == e && t.navigateTo({
                                    url: "/pages/main/statistics/rawMaterial"
                                })
                            },
                            getStatisList: function () {
                                var e = this,
                                    i = getApp().globalData.userinfo;
                                "salesman" == i.roles[0].roleKey ? this.listData.sctj = !1 : "workshop" == i.roles[0].roleKey ? (this.xstj = !1, this.kftj = !1, this.cktj = !1) : "StorageRoom" == i.roles[0].roleKey && (this.sctj = !1, this.xstj = !1), console.log("统计");
                                i = getApp().globalData.userinfo;
                                //console.log("当前角色", i.roles[0].roleKey), 
                                this.roleKey = "";
                                var a = getApp().globalData.userinfo.roles[0].roleKey;
                                this.roleKey = a, 
                                //console.log(this.roleKey);
                                this.token = getApp().globalData.userinfo.loginIp, //console.log("token", this.token), 
                                t.request({
                                    url: this.url + "statisticalchart/getDay",
                                    method: "GET",
                                    header: {
                                        Authorization: this.token
                                    },
                                    data: {},
                                    success: function (t) {
                                        console.log(t)
                                        e.tongjilist = t.data
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })//console.log(this.tongjilist)
                            }
                        },
                        onLoad: function (t) {
                            this.getStatisList()
                        },
                        onPullDownRefresh: function () {
                            this.loadData(), setTimeout((function () {
                                t.stopPullDownRefresh()
                            }), 1e3)
                        }
                    };
                e.default = n
            }).call(this, i("543d")["default"])
        }
    },
    [
        ["1211", "common/runtime", "common/vendor"]
    ]
]);